'use strict';

const Service = require('egg').Service;
const EventEmitter = require('events').EventEmitter;

class UserServiceProvider extends Service {
  boot() {
    const events = new EventEmitter();

    this.service.listeners.userListener.subscribe(events);

    return events;
  }
}

module.exports = UserServiceProvider;
